<?php /* Smarty version Smarty-3.1.6, created on 2017-02-12 11:03:03
         compiled from "F:/cly/Show/Admin/View\Auth\xiugai.html" */ ?>
<?php /*%%SmartyHeaderCode:11145589fce2bcaa262-50841470%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5b66db053a181f2a377bd8eb759ee7f1517580ce' => 
    array (
      0 => 'F:/cly/Show/Admin/View\\Auth\\xiugai.html',
      1 => 1486868579,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '11145589fce2bcaa262-50841470',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_589fce2bdac9d',
  'variables' => 
  array (
    'list' => 0,
    'fauth' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_589fce2bdac9d')) {function content_589fce2bdac9d($_smarty_tpl) {?><!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link href="/Show/Admin/Public/css/news.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/Show/Admin/Public/ckeditor/ckeditor.js"></script>
    <title>权限修改</title>
  </head>
  <body>
    <a href="<?php echo @__CONTROLLER__;?>
/showlist" target="_self">[返回]</a>
    <form action="<?php echo @__SELF__;?>
" method="post">
    <div class="mainbox">
          <div class="title">&nbsp;&nbsp;权限修改</div>
          <div class="tablebox">
            <table class="table" border="0">
              <tr>
                <td class="tdl">权限名称</td>
                <td class="tdr">
                    <input type="text" name="auth_name" value="<?php echo $_smarty_tpl->tpl_vars['list']->value['auth_name'];?>
">
                    <input type="hidden" name="auth_id" value="<?php echo $_smarty_tpl->tpl_vars['list']->value['auth_id'];?>
">
                </td>
              </tr>
              <tr>
                <td class="tdl">父级权限</td>
                <td class="tdr">
                    <select name="auth_pid">
                        <option value="0">无</option>
                        <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['n'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['n']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['name'] = 'n';
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['fauth']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total']);
?>
                        <option value="<?php echo $_smarty_tpl->tpl_vars['fauth']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['auth_id'];?>
" <?php if ($_smarty_tpl->tpl_vars['fauth']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['auth_id']==$_smarty_tpl->tpl_vars['list']->value['auth_pid']){?> selected="selected" <?php }?> ><?php echo $_smarty_tpl->tpl_vars['fauth']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['auth_name'];?>
</option>
                        <?php endfor; endif; ?>
                    </select>
                </td>
              </tr>
              <tr>
                <td class="tdl">控制器</td>
                <td class="tdr">
                    <input type="text" name="auth_c" value="<?php echo $_smarty_tpl->tpl_vars['list']->value['auth_c'];?>
">
                </td>
              </tr>
              <tr>
                <td class="tdl">操作方法</td>
                <td class="tdr">
                    <input type="text" name="auth_a" value="<?php echo $_smarty_tpl->tpl_vars['list']->value['auth_a'];?>
">
                </td>
              </tr>
              <tr>
                <td class="tdl">状态</td>
                <td class="tdr">
                    <select name="auth_state">
                        <option value="0" <?php if ($_smarty_tpl->tpl_vars['list']->value['auth_state']==0){?> selected="selected" <?php }?> >不可见</option>
                        <option value="1" <?php if ($_smarty_tpl->tpl_vars['list']->value['auth_state']==1){?> selected="selected" <?php }?>>可见</option>
                    </select>
                </td>
              </tr>
              <tr>
                <td class="tdl"></td>
                <td class="tdr">
                  <input type="submit" name="sub" value="修改">
                </td>
              </tr>
            </table>
          </div>
    </div>
    </form>
  </body>
</html><?php }} ?>